
package guice.boot.archive.container.pipeline;

import guice.boot.archive.exception.ArkRuntimeException;
import guice.boot.archive.spi.event.AfterFinishStartupEvent;
import guice.boot.archive.spi.pipeline.PipelineContext;
import guice.boot.archive.spi.pipeline.PipelineStage;
import guice.boot.archive.spi.service.event.EventService;

import javax.inject.Inject;
import javax.inject.Singleton;


@Singleton
public class FinishStartupStage implements PipelineStage {
    @Inject
    private EventService eventService;

    @Override
    public void process(PipelineContext pipelineContext) throws ArkRuntimeException {
        eventService.sendEvent(new AfterFinishStartupEvent());
    }
}